<script setup>

import router from "../../router/index.js";


const gotoPageA = () => {
  // router.push({ name: 'pageA' });
  console.log(router);
  console.log(router.options);
};
</script>

<template>
  <div>
    Page B. <br>
    <router-link to="/a/page">返回PageA</router-link>
    <br>
    <el-button type="primary" @click="gotoPageA">跳转PageA</el-button>
    <el-button type="primary" @click="gotoPageA">跳转PageA</el-button>
  </div>
</template>

<style scoped>
div {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin-top: 60px;
  background-color: #fafafa;
  font-size: 20px;
}
</style>